package com.nbst.model.mes;

import java.util.Date;

import com.nbst.model.base.OrderBy;

/**
 * 
 * @ClassName: IcmoEntry
 * @Description:APS中的生产任务单，作为排程依据
 * @author King
 * @date 2018年10月15日
 *
 */
public class IcmoEntry extends OrderBy {

	/** 任务单内码 */
	private Integer fIcmoId;

	/** 任务单编号 */
	private String fBillNo;

	/** 生产车间id */
	private Integer fWorkShop;

	/** 生产车间 */
	private String fWorkShopName;

	/** 任务数量 */
	private Double fQty;

	/** 计划开始时间 */
	private Date fPlanCommitDate;

	/** 计划完工时间 */
	private Date fPlanFinishDate;

	/** 实际开始时间 */
	private Date fCommitDate;

	/** 实际完工时间 */
	private Date fFinishDate;

	/** 排产计划开始时间 */
	private Date fSchedulingCommitDate;

	/** 排产计划完工时间 */
	private Date fSchedulingFinishDate;

	/** 产品内码 */
	private Integer fItemId;

	/** 产品代码 */
	private String fNumber;

	/** 产品名称 */
	private String fName;

	/** 型号规格 */
	private String fModel;

	/** 关闭标志 0关闭 */
	private Integer fClosed;

	/** 制单时间 */
	private Date fDate;

	/** 预装配时间 */
	private Date fAuxDate;

	/** 制单人 */
	private String fBiller;

	/** 制单人 */
	private String fBillerName;

	/** 更新时间 */
	private Date updateTime;

	/** 排程状态 0未加入排程 1已加入 */
	private Integer fSchedulingStatus;

	/** 等级 A加急订单需马上排产，B急单 优先安排生产，C一般订单按订单交期生产，D库存订单最后安排生产 */
	private String fGrade;

	/** 已生产数量 */
	private Double fCommitQty;

	/** 库存状态 1库存足够 在APS排程时库存检查，如果库存足够则标记为1 */
	private Integer fStockStatus;

	/** 投产数量 */
	private Double fPpQty;

	/** 生产状态 */
	private Integer fStatus;

	/** 订单内码 */
	private Integer fOrderInterID;

	/** 订单分录号 */
	private Integer fSourceEntryID;

	/** 工废数 */
	private Double fAuxQtyScrap;

	/** 料废数 */
	private Double fAuxQtyForItem;

	/** 丢失数 */
	private Double fQtyLost;

	/** 返修数 */
	private Double fReworkQty;

	/** 其他数 */
	private Double fOthQty;

	// 改制数
	private Double fRestructQty;

	/** 入库数 */
	private Double fInStockQty;

	/** 返修类型 */
	private Integer fRepairType;

	/** 抽检数 */
	private Double fSamplingQty;

	/** 良品数 */
	private Double fOkQty;

	/** 下达时间 */
	private Date fDownDate;

	private String fBatchNo;

	private String isready;

	private int count;

	/** 可生产数 生产管理人员可根据该值判断该任务单是否可以下达生产 */
	private Double fKscQty;

	/** 摘要 */
	private String fExplanation;

	/** 备注 */
	private String fNote;

	/** 销售订单号 */
	private String fOrderNo;

	/** 工序入库数 */
	private Double fOperInStockQty;

	/** 预派工数 */
	private Double fAuxQty;

	/** 首道工序已派工数量 */
	private Double fDispatchQty;

	/** 首道工序最后一次派工的派工单号 */
	private String fIsLastCode;

	/** 首道工序最后一次的派工时间 */
	private Date fIsLastDispatchDate;

	/**
	 * 派工单撤销是是否更新首次派工单号标志
	 */
	private Boolean updateIsLastCodeFlag;

	private String fOrderBillNo;

	/** 客户型号 */
	private String fCustModel;

	/** 序列号 */
	private String fSerialNumber;

	/** 包装类型 */
	private String fPackingType;

	/** 油漆颜色 */
	private String fPaintColor;

	/** 标牌说明 */
	private String fLabelExplain;

	/** 客户 */
	private String fCustName;

	/** 客户代码 */
	private String fCustNumber;

	public String getfCustName() {
		return fCustName;
	}

	public void setfCustName(String fCustName) {
		this.fCustName = fCustName;
	}

	public Boolean getUpdateIsLastCodeFlag() {
		return updateIsLastCodeFlag;
	}

	public void setUpdateIsLastCodeFlag(Boolean updateIsLastCodeFlag) {
		this.updateIsLastCodeFlag = updateIsLastCodeFlag;
	}

	public Double getfAuxQty() {
		return fAuxQty;
	}

	public void setfAuxQty(Double fAuxQty) {
		this.fAuxQty = fAuxQty;
	}

	public Date getfAuxDate() {
		return fAuxDate;
	}

	public void setfAuxDate(Date fAuxDate) {
		this.fAuxDate = fAuxDate;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Integer getfIcmoId() {
		return fIcmoId;
	}

	public void setfIcmoId(Integer fIcmoId) {
		this.fIcmoId = fIcmoId;
	}

	public String getfBillNo() {
		return fBillNo;
	}

	public void setfBillNo(String fBillNo) {
		this.fBillNo = fBillNo == null ? null : fBillNo.trim();
	}

	public Double getfQty() {
		return fQty;
	}

	public void setfQty(Double fQty) {
		this.fQty = fQty;
	}

	public Double getfRestructQty() {
		return fRestructQty;
	}

	public void setfRestructQty(Double fRestructQty) {
		this.fRestructQty = fRestructQty;
	}

	public Date getfPlanCommitDate() {
		return fPlanCommitDate;
	}

	public void setfPlanCommitDate(Date fPlanCommitDate) {
		this.fPlanCommitDate = fPlanCommitDate;
	}

	public Date getfPlanFinishDate() {
		return fPlanFinishDate;
	}

	public void setfPlanFinishDate(Date fPlanFinishDate) {
		this.fPlanFinishDate = fPlanFinishDate;
	}

	public Date getfCommitDate() {
		return fCommitDate;
	}

	public void setfCommitDate(Date fCommitDate) {
		this.fCommitDate = fCommitDate;
	}

	public Date getfFinishDate() {
		return fFinishDate;
	}

	public void setfFinishDate(Date fFinishDate) {
		this.fFinishDate = fFinishDate;
	}

	public Date getfSchedulingCommitDate() {
		return fSchedulingCommitDate;
	}

	public void setfSchedulingCommitDate(Date fSchedulingCommitDate) {
		this.fSchedulingCommitDate = fSchedulingCommitDate;
	}

	public Date getfSchedulingFinishDate() {
		return fSchedulingFinishDate;
	}

	public void setfSchedulingFinishDate(Date fSchedulingFinishDate) {
		this.fSchedulingFinishDate = fSchedulingFinishDate;
	}

	public Integer getfItemId() {
		return fItemId;
	}

	public void setfItemId(Integer fItemId) {
		this.fItemId = fItemId;
	}

	public String getfNumber() {
		return fNumber;
	}

	public void setfNumber(String fNumber) {
		this.fNumber = fNumber == null ? null : fNumber.trim();
	}

	public String getfName() {
		return fName;
	}

	public void setfName(String fName) {
		this.fName = fName == null ? null : fName.trim();
	}

	public String getfModel() {
		return fModel;
	}

	public void setfModel(String fModel) {
		this.fModel = fModel;
	}

	public Integer getfClosed() {
		return fClosed;
	}

	public void setfClosed(Integer fClosed) {
		this.fClosed = fClosed;
	}

	public Date getfDate() {
		return fDate;
	}

	public void setfDate(Date fDate) {
		this.fDate = fDate;
	}

	public String getfBiller() {
		return fBiller;
	}

	public void setfBiller(String fBiller) {
		this.fBiller = fBiller == null ? null : fBiller.trim();
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getfSchedulingStatus() {
		return fSchedulingStatus;
	}

	public void setfSchedulingStatus(Integer fSchedulingStatus) {
		this.fSchedulingStatus = fSchedulingStatus;
	}

	public String getfGrade() {
		return fGrade;
	}

	public void setfGrade(String fGrade) {
		this.fGrade = fGrade == null ? null : fGrade.trim();
	}

	public Integer getfWorkShop() {
		return fWorkShop;
	}

	public void setfWorkShop(Integer fWorkShop) {
		this.fWorkShop = fWorkShop;
	}

	public Double getfCommitQty() {
		return fCommitQty;
	}

	public void setfCommitQty(Double fCommitQty) {
		this.fCommitQty = fCommitQty;
	}

	public Integer getfStockStatus() {
		return fStockStatus;
	}

	public void setfStockStatus(Integer fStockStatus) {
		this.fStockStatus = fStockStatus;
	}

	public Double getfPpQty() {
		return fPpQty;
	}

	public void setfPpQty(Double fPpQty) {
		this.fPpQty = fPpQty;
	}

	public Integer getfStatus() {
		return fStatus;
	}

	public void setfStatus(Integer fStatus) {
		this.fStatus = fStatus;
	}

	public String getfWorkShopName() {
		return fWorkShopName;
	}

	public void setfWorkShopName(String fWorkShopName) {
		this.fWorkShopName = fWorkShopName;
	}

	public Integer getfOrderInterID() {
		return fOrderInterID;
	}

	public void setfOrderInterID(Integer fOrderInterID) {
		this.fOrderInterID = fOrderInterID;
	}

	public Integer getfSourceEntryID() {
		return fSourceEntryID;
	}

	public void setfSourceEntryID(Integer fSourceEntryID) {
		this.fSourceEntryID = fSourceEntryID;
	}

	public Double getfAuxQtyScrap() {
		return fAuxQtyScrap;
	}

	public void setfAuxQtyScrap(Double fAuxQtyScrap) {
		this.fAuxQtyScrap = fAuxQtyScrap;
	}

	public Double getfAuxQtyForItem() {
		return fAuxQtyForItem;
	}

	public void setfAuxQtyForItem(Double fAuxQtyForItem) {
		this.fAuxQtyForItem = fAuxQtyForItem;
	}

	public Double getfQtyLost() {
		return fQtyLost;
	}

	public void setfQtyLost(Double fQtyLost) {
		this.fQtyLost = fQtyLost;
	}

	public Double getfReworkQty() {
		return fReworkQty;
	}

	public void setfReworkQty(Double fReworkQty) {
		this.fReworkQty = fReworkQty;
	}

	public Double getfOthQty() {
		return fOthQty;
	}

	public void setfOthQty(Double fOthQty) {
		this.fOthQty = fOthQty;
	}

	public Double getfInStockQty() {
		return fInStockQty;
	}

	public void setfInStockQty(Double fInStockQty) {
		this.fInStockQty = fInStockQty;
	}

	public Integer getfRepairType() {
		return fRepairType;
	}

	public void setfRepairType(Integer fRepairType) {
		this.fRepairType = fRepairType;
	}

	public Double getfSamplingQty() {
		return fSamplingQty;
	}

	public void setfSamplingQty(Double fSamplingQty) {
		this.fSamplingQty = fSamplingQty;
	}

	public Double getfOkQty() {
		return fOkQty;
	}

	public void setfOkQty(Double fOkQty) {
		this.fOkQty = fOkQty;
	}

	public Date getfDownDate() {
		return fDownDate;
	}

	public void setfDownDate(Date fDownDate) {
		this.fDownDate = fDownDate;
	}

	public String getfBatchNo() {
		return fBatchNo;
	}

	public void setfBatchNo(String fBatchNo) {
		this.fBatchNo = fBatchNo;
	}

	public String getIsready() {
		return isready;
	}

	public void setIsready(String isready) {
		this.isready = isready;
	}

	public Double getfKscQty() {
		return fKscQty;
	}

	public void setfKscQty(Double fKscQty) {
		this.fKscQty = fKscQty;
	}

	public String getfExplanation() {
		return fExplanation;
	}

	public void setfExplanation(String fExplanation) {
		this.fExplanation = fExplanation;
	}

	public String getfNote() {
		return fNote;
	}

	public void setfNote(String fNote) {
		this.fNote = fNote;
	}

	public String getfOrderNo() {
		return fOrderNo;
	}

	public void setfOrderNo(String fOrderNo) {
		this.fOrderNo = fOrderNo;
	}

	public String getfBillerName() {
		return fBillerName;
	}

	public void setfBillerName(String fBillerName) {
		this.fBillerName = fBillerName;
	}

	public Double getfOperInStockQty() {
		return fOperInStockQty;
	}

	public void setfOperInStockQty(Double fOperInStockQty) {
		this.fOperInStockQty = fOperInStockQty;
	}

	public Double getfDispatchQty() {
		return fDispatchQty;
	}

	public void setfDispatchQty(Double fDispatchQty) {
		this.fDispatchQty = fDispatchQty;
	}

	public String getfIsLastCode() {
		return fIsLastCode;
	}

	public void setfIsLastCode(String fIsLastCode) {
		this.fIsLastCode = fIsLastCode;
	}

	public Date getfIsLastDispatchDate() {
		return fIsLastDispatchDate;
	}

	public void setfIsLastDispatchDate(Date fIsLastDispatchDate) {
		this.fIsLastDispatchDate = fIsLastDispatchDate;
	}

	public String getfOrderBillNo() {
		return fOrderBillNo;
	}

	public void setfOrderBillNo(String fOrderBillNo) {
		this.fOrderBillNo = fOrderBillNo;
	}

	public String getfCustModel() {
		return fCustModel;
	}

	public void setfCustModel(String fCustModel) {
		this.fCustModel = fCustModel;
	}

	public String getfSerialNumber() {
		return fSerialNumber;
	}

	public void setfSerialNumber(String fSerialNumber) {
		this.fSerialNumber = fSerialNumber;
	}

	public String getfPackingType() {
		return fPackingType;
	}

	public void setfPackingType(String fPackingType) {
		this.fPackingType = fPackingType;
	}

	public String getfPaintColor() {
		return fPaintColor;
	}

	public void setfPaintColor(String fPaintColor) {
		this.fPaintColor = fPaintColor;
	}

	public String getfLabelExplain() {
		return fLabelExplain;
	}

	public void setfLabelExplain(String fLabelExplain) {
		this.fLabelExplain = fLabelExplain;
	}

	public String getfCustNumber() {
		return fCustNumber;
	}

	public void setfCustNumber(String fCustNumber) {
		this.fCustNumber = fCustNumber;
	}

	@Override
	public String toString() {
		return "IcmoEntry [fIcmoId=" + fIcmoId + ", fBillNo=" + fBillNo + ", fWorkShop=" + fWorkShop
				+ ", fWorkShopName=" + fWorkShopName + ", fQty=" + fQty + ", fPlanCommitDate=" + fPlanCommitDate
				+ ", fPlanFinishDate=" + fPlanFinishDate + ", fCommitDate=" + fCommitDate + ", fFinishDate="
				+ fFinishDate + ", fSchedulingCommitDate=" + fSchedulingCommitDate + ", fSchedulingFinishDate="
				+ fSchedulingFinishDate + ", fItemId=" + fItemId + ", fNumber=" + fNumber + ", fName=" + fName
				+ ", fModel=" + fModel + ", fClosed=" + fClosed + ", fDate=" + fDate + ", fAuxDate=" + fAuxDate
				+ ", fBiller=" + fBiller + ", fBillerName=" + fBillerName + ", updateTime=" + updateTime
				+ ", fSchedulingStatus=" + fSchedulingStatus + ", fGrade=" + fGrade + ", fCommitQty=" + fCommitQty
				+ ", fStockStatus=" + fStockStatus + ", fPpQty=" + fPpQty + ", fStatus=" + fStatus + ", fOrderInterID="
				+ fOrderInterID + ", fSourceEntryID=" + fSourceEntryID + ", fAuxQtyScrap=" + fAuxQtyScrap
				+ ", fAuxQtyForItem=" + fAuxQtyForItem + ", fQtyLost=" + fQtyLost + ", fReworkQty=" + fReworkQty
				+ ", fOthQty=" + fOthQty + ", fRestructQty=" + fRestructQty + ", fInStockQty=" + fInStockQty
				+ ", fRepairType=" + fRepairType + ", fSamplingQty=" + fSamplingQty + ", fOkQty=" + fOkQty
				+ ", fDownDate=" + fDownDate + ", fBatchNo=" + fBatchNo + ", isready=" + isready + ", count=" + count
				+ ", fKscQty=" + fKscQty + ", fExplanation=" + fExplanation + ", fNote=" + fNote + ", fOrderNo="
				+ fOrderNo + ", fOperInStockQty=" + fOperInStockQty + ", fAuxQty=" + fAuxQty + ", fDispatchQty="
				+ fDispatchQty + ", fIsLastCode=" + fIsLastCode + ", fIsLastDispatchDate=" + fIsLastDispatchDate
				+ ", updateIsLastCodeFlag=" + updateIsLastCodeFlag + ", fOrderBillNo=" + fOrderBillNo + ", fCustModel="
				+ fCustModel + ", fSerialNumber=" + fSerialNumber + ", fPackingType=" + fPackingType + ", fPaintColor="
				+ fPaintColor + ", fLabelExplain=" + fLabelExplain + ", fCustName=" + fCustName + ", fCustNumber="
				+ fCustNumber + "]";
	}

}